Rosetta Code

Rosetta Code is a wiki-based programming chrestomathy website with solutions to various programming problems in many different programming languages. It was created in 2007 by Mike Mol. As of 19 December 2010 (2010 -12-19) Rosetta Code includes 450 programming tasks, and covers 351 programming languages[1]. The site's content is licensed under the GNU Free Documentation License 1.2, though some components may be dual-licensed under more permissive terms[2].

Contents

Data and structure

The site is organized as a browseable cross-section of tasks (specific programming problems or considerations) and programming languages. A task's page displays visitor-contributed solutions in various languages, allowing a viewer to compare each language's approach to the task's stated problem. Task pages are included in per-language listings based on the languages of provided solutions; a task with a solution in C will show up in the listing for C. If the same task has a solution in Ruby, the task will appear in Ruby's listing as well.

Selection of languages

The following represents a sample of the languages found on Rosetta Code, ordered by sitewide application:[3]

  1. Tcl
  2. Picolisp
  3. Python
  4. J
  5. C
  6. Ada
  7. Ruby
  8. Go
  9. PureBasic
  10. Perl

Selection of tasks

The following represents a sample of the tasks found on Rosetta Code, ordered by sitewide involvement.[4]

  1. Hello world/Text
  2. 99 Bottles of Beer
  3. Comments
  4. Empty program
  5. 100 doors
  6. Fibonacci sequence
  7. Function definition
  8. FizzBuzz
  9. Ackermann function
  10. Factorial

External links

References